package com.iob.coin.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * @Author: MengYuxin
 * @Date: 2021/4/13 19:48
 */
@Entity
@Table(name = "Type")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Type {

    public Type(int kgID,String node_type, String color, double radius) {
        this.kgID=kgID;
        this.node_type = node_type;
        this.color = color;
        this.radius = radius;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private int id;

    @Column(name = "kgID")
    private int kgID;

    @Column(name = "node_type")
    private String node_type;

    @Column(name = "color")
    private String color;

    @Column(name = "radius")
    private double radius;

}
